package com.itheima.dao;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrdersettingDao {
    //查询是否有相同的日期
    Long selectOrderDate(Date orderDate);
    //更新批量数据
    void updateNumberByOrderDate(OrderSetting orderSetting);
    //批量插入新的数据
    void add(OrderSetting orderSetting);

    List<OrderSetting> getOrderSettingByMonth(Map map);
    //根据orderDate查询用户
    OrderSetting findByOrderDate(Date orderDate);
    //更新已经预约人数
    void editReservationsByOrderDate(OrderSetting orderSetting);

}
